package main

import (
	"os/exec"
)

const (
	_swaggerProtoc = "protoc --proto_path=%s --proto_path=%s --proto_path=%s --bswagger_out=explicit_http=true:."
)

func installSwaggerGen() error {
	return exec.Command("kratos", "tool", "check_install", "protoc-gen-dam").Run()
}

func genSwagger(files []string) error {
	return generate(_swaggerProtoc, files)
}
